package com.pbc.gmp.model.basemodel;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author kjk
 * @since 2017-12-23
 */
@TableName("t_user")
public class User implements Serializable,Principal {
	public static final String PRINCIPAL_TYPE="user";
    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	private Long id;

	/**
	 * 
	 */
	private String name;

	/**
	 * 璧勬簮绫诲瀷
	 */
	private String ptype;

	/**
	 * 
	 */
	private String nickname;

	/**
	 * 
	 */
	private String realname;

	/**
	 * 
	 */
	private String password;

	/**
	 * 
	 */
	private String salt;

	/**
	 * 
	 */
	private String worktitle;

	/**
	 * 
	 */
	private Long departmentid;

	/**
	 * 
	 */
	private String maindepartment;

	/**
	 * 
	 */
	private String phone;

	/**
	 * 鎬у埆(0:鏈煡;1:鐢?2:濂?
	 */
	private Integer sex;

	/**
	 * 
	 */
	private String description;

	/**
	 * 
	 */
	private Integer sortcode;

	/**
	 * 
	 */
	private Integer userconfiguration;

	/**
	 * 
	 */
	private Date createon;

	/**
	 * 
	 */
	private Long createuserid;

	/**
	 * 
	 */
	private Date modifiedon;

	/**
	 * 
	 */
	private Long modifieduserid;

	/**
	 * 
	 */
	private Date lastlogintime;

	/**
	 * 
	 */
	private Integer enabled;

	/**
	 * 
	 */
	private Integer locked;

	/**
	 * 
	 */
	private String loginname;



	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPtype() {
		return ptype;
	}

	public void setPtype(String ptype) {
		this.ptype = ptype;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public String getWorktitle() {
		return worktitle;
	}

	public void setWorktitle(String worktitle) {
		this.worktitle = worktitle;
	}

	public Long getDepartmentid() {
		return departmentid;
	}

	public void setDepartmentid(Long departmentid) {
		this.departmentid = departmentid;
	}

	public String getMaindepartment() {
		return maindepartment;
	}

	public void setMaindepartment(String maindepartment) {
		this.maindepartment = maindepartment;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getSortcode() {
		return sortcode;
	}

	public void setSortcode(Integer sortcode) {
		this.sortcode = sortcode;
	}

	public Integer getUserconfiguration() {
		return userconfiguration;
	}

	public void setUserconfiguration(Integer userconfiguration) {
		this.userconfiguration = userconfiguration;
	}

	public Date getCreateon() {
		return createon;
	}

	public void setCreateon(Date createon) {
		this.createon = createon;
	}

	public Long getCreateuserid() {
		return createuserid;
	}

	public void setCreateuserid(Long createuserid) {
		this.createuserid = createuserid;
	}

	public Date getModifiedon() {
		return modifiedon;
	}

	public void setModifiedon(Date modifiedon) {
		this.modifiedon = modifiedon;
	}

	public Long getModifieduserid() {
		return modifieduserid;
	}

	public void setModifieduserid(Long modifieduserid) {
		this.modifieduserid = modifieduserid;
	}

	public Date getLastlogintime() {
		return lastlogintime;
	}

	public void setLastlogintime(Date lastlogintime) {
		this.lastlogintime = lastlogintime;
	}

	public Integer getEnabled() {
		return enabled;
	}

	public void setEnabled(Integer enabled) {
		this.enabled = enabled;
	}

	public Integer getLocked() {
		return locked;
	}

	public void setLocked(Integer locked) {
		this.locked = locked;
	}

	public String getLoginname() {
		return loginname;
	}

	public void setLoginname(String loginname) {
		this.loginname = loginname;
	}

}
